package com.wx.service.impl;

import com.wx.mapper.CollectUserDetailMapperCustom;
import com.wx.mapper.WxCollectUserDetailMapper;
import com.wx.pojo.WxCollectUserDetail;
import com.wx.service.ICollectUserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectUserDetailServiceImpl implements ICollectUserDetailService {

    @Autowired
    private WxCollectUserDetailMapper wxCollectUserDetailMapper;

    @Autowired
    private CollectUserDetailMapperCustom collectUserDetailMapperCustom;

    @Override
    public List<WxCollectUserDetail> listModel(){
        return wxCollectUserDetailMapper.selectAll();
    }

    @Override
    public List<WxCollectUserDetail> listModelByUserId(Integer user_id){
        return collectUserDetailMapperCustom.listModelByUserId(user_id);
    }

    @Override
    public List<WxCollectUserDetail> listModelByNumber(String collect_number){
        return collectUserDetailMapperCustom.listModelByNumber(collect_number);
    }

    @Override
    public List<WxCollectUserDetail> listModelByNumberAndUser(Integer user_id,
                                                              String collect_number){
        return collectUserDetailMapperCustom.listModelByNumberAndUser(user_id,collect_number);
    }


}
